package alon.xmnn.bobing;

import java.util.HashMap;
import java.util.Map;

public class Core {
	private static Map<Integer, Core> map = new HashMap<Integer, Core>();
	public String getCore() {
		return core;
	}
	public void setCore(String core) {
		this.core = core;
	}
	public String getStr() {
		return str;
	}
	public void setStr(String str) {
		this.str = str;
	}
	public int goIntValue() {
		return "".equals(core)?0:Integer.parseInt(core);
	}
	private String core="";
	private String str="";
	static{
		map.put(0, new Core("",""));
		map.put(1, new Core("10","一秀"));
		map.put(2, new Core("20","二举"));
		map.put(3, new Core("40","四进"));
		map.put(4, new Core("60","三红"));
		map.put(5, new Core("100","对堂"));
		map.put(6, new Core("200","状元"));
		map.put(7, new Core("200","五子"));
		map.put(8, new Core("200","五子带一秀"));
		map.put(9, new Core("200","五王"));
		map.put(10, new Core("200","六杯黑"));
		map.put(11, new Core("200","遍地锦"));
		map.put(12, new Core("300","六勃红"));
		map.put(13, new Core("300","状元插金花"));
	}
	public Core(String core,String str) {
		this.core=core;
		this.str=str;
	}
	public static Core getCore(Integer i){
		return map.get(i);
	}
}
